
// 小节相关
import request from '@/utils/request'

export default {

    //添加小节
    addEduVideo(eduVideo) {
        return request({
            url: '/eduservice/eduVideo/addEduVideo',
            method: 'post',
            data: eduVideo
        })
    },
    //删除小节
    deleteEduVideo(videoId) {
        return request({
            url: '/eduservice/eduVideo/deleteEduVideo/' + videoId,
            method: 'delete',

        })
    },
    //修改小节
    updateEduVideo(eduVideo) {
        return request({
            url: '/eduservice/eduVideo/updateEduVideo',
            method: 'put',
            data: eduVideo
        })
    },
    //得到小节相关信息，进行回显
    getEduVideo(videoId) {
        return request({
            url: '/eduservice/eduVideo/getEduVideo/' + videoId,
            method: 'get',
        })
    },
    //删除视频
    deleteVideo(videoId) {
        return request({
            url: '/eduvod/video/removeVideo/' + videoId,
            method: 'delete',
        })

    }


}